home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 38
/
Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso
/
-seriously_amiga-
/
programming
/
other
/
esa
/
examples
/
sss
/
code
/
main.esa
< prev
next >
Wrap
Text File
|
1999-01-25
|
898b
|
35 lines
*******************************************************************************
* main v1.3.0
*******************************************************************************
machine 68020
include defs.i
*******************************************************************************
when.s Init[a0,d0] ;initialization
when.s ParseCmdLn[#CmdLn] ;get command line args
Print[#txt_title] ;must come after ParseCmdLn[]
when.s ~Settings[] ;open files, allocmem, etc.
GiveInfo[] ;show some info
Split[] ;if no err, execute splitting
ewhen
ShowResult[d0] ;d0 ret. by Settings[] or Split[]
othw
Print[#txt_title]
Print[#txt_UsgHlp] ;show help text
ewhen
ewhen
CleanUp[] ;final cleanup
rts
*******************************************************************************
* subroutines and data
include split.ei
include opt.ei
include misc.ei
include data.i